package com.lcf.system.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 用户积分(UserScore)表实体类
 *
 * @author lcf
 * @since 2025-04-24 21:14:32
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
public class UserScore extends Model<UserScore> {
    //id
    private Long id;
    //openid
    private String openId;
    //积分
    private Integer score;

    public UserScore (String openId) {
        this.openId = openId;
        this.score = 0;
    }
}

